CenterBox: Guard against directly including header
authorDaniel Boles <dboles@src.gnome.org>
Sat, 5 Aug 2017 17:44:02 +0000 (18:44 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sat, 5 Aug 2017 17:44:02 +0000 (18:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=785280

gtk/gtkcenterbox.h

index 4c8e7ad21a3f5e166be86373b8f4875687783f01..bfd68f80e975b7d830dca64576b49afb0600a8e0 100644 (file)
 #ifndef __GTK_CENTER_BOX_H__
 #define __GTK_CENTER_BOX_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include "gtkwidget.h"
 
 G_BEGIN_DECLS